'use strict';

angular.module('metadatamanagementApp').config([
  '$translateProvider',

  function($translateProvider) {
    var searchTranslations = {
      //jscs:disable
      'search-management': {
        'packages': {
          'label': 'What are you searching for?',
          'data-packages': 'Data Packages (SUFs, CUFs)',
          'analysis-packages': 'Analysis Packages (Scripts)',
          'publications': 'Publications'
        },
        'delete-messages': {
          'delete-variables-title': 'Replace all Variables?',
          'delete-variables': 'Are you sure you want to replace all data of the Variables within the Data Acquisition Project "{{ id }}"?',
          'delete-surveys-title': 'Replace all Surveys?',
          'delete-surveys': 'Are you sure you want to replace all data of the Surveys within the Data Acquisition Project "{{ id }}"?',
          'delete-questions-title': 'Replace all Questions?',
          'delete-questions': 'Are you sure you want to replace all Questions within the Data Acquisition Project with RDC-ID "{{ id }}"?',
          'delete-data-sets-title': 'Replace all Data Sets?',
          'delete-data-sets': 'Are you sure you want to replace all Data Sets within the Data Acquisition Project with RDC-ID "{{ id }}"?',
          'delete-data-packages-title': 'Replace Data Package?',
          'delete-data-packages': 'Are you sure you want to replace the Data Package of the Data Acquisition Project with RDC-ID "{{ id }}"?',
          'delete-related-publications-title': 'Replace all Publications?',
          'delete-related-publications': 'Are you sure you want to replace all Publications?',
          'delete-instruments-title': 'Replace all Instruments?',
          'delete-instruments': 'Are you sure you want to replace all Instruments within the Data Acquisition Project with RDC-ID "{{ id }}"?'
        },
        'search-result': {
          'dataPackageSearch': 'Search "{{ searchQuery }}" in Data Package',
          'analysisPackageSearch': 'Search "{{ searchQuery }}" in Analysis Package',
          'relatedPublicationsSearch': 'Search "{{ searchQuery }}" in Publications'
        },
        'detail': {
          'search': 'Data Search',
          'dataPackageSearch': 'Data Search',
          'noresult': 'No search results found.',
          'version': 'Version',
          'access-way': 'Access Way',
          'cart': 'Add to shopping cart',
          'data-packages-info': 'Data packages contain Scientific Use Files and/or Campus Use Files that are intended for broad use in science or teaching.',
          'analysis-packages-info': 'Analysis packages contain analysis scripts and analysis data that were used to create a specific publication and thus enable its replication.',
          'related-publications-info': 'Publications contain bibliographic information on publications that use the data of listed data and analysis packages.'
        },
        'buttons': {
          'refresh-tooltip': 'Click to refresh the search results',
          'upload-variables-tooltip': 'Click to upload variables for the selected Data Acquisition Project',
          'upload-surveys-tooltip': 'Click to upload surveys for the selected Data Acquisition Project',
          'upload-data-sets-tooltip': 'Click to upload data sets for the selected Data Acquisition Project',
          'upload-questions-tooltip': 'Click to upload questions for the selected Data Acquisition Project',
          'upload-data-packages-tooltip': 'Click to upload the data package with attachments',
          'upload-or-create-data-packages-tooltip': 'Create the data package',
          'upload-or-create-surveys-tooltip': 'Create one survey',
          'upload-or-create-concepts-tooltip': 'Create one concept',
          'upload-or-create-instruments-tooltip': 'Create one instrument',
          'upload-or-create-data-sets-tooltip': 'Create one data set',
          'upload-or-edit-data-packages-tooltip': 'Click to edit the data package',
          'create-data-package-tooltip': 'Click to create the data package',
          'create-analysis-package-tooltip': 'Click to create the analysis package',
          'create-concept-tooltip': 'Click to create the concept',
          'create-survey-tooltip': 'Click to create a new survey',
          'edit-data-package-tooltip': 'Click to edit the data package',
          'edit-analysis-package-tooltip': 'Click to edit the analysis package',
          'edit-concept-tooltip': 'Click to edit the concept',
          'edit-survey-tooltip': 'Click to edit the survey',
          'delete-survey-tooltip': 'Click to delete the survey',
          'delete-concept-tooltip': 'Click to delete the concept',
          'create-instrument-tooltip': 'Click to create a new instrument',
          'edit-instrument-tooltip': 'Click to edit the instrument',
          'delete-instrument-tooltip': 'Click to delete the instrument',
          'delete-all-instruments-tooltip': 'Click, to delete all instruments of the Data Acquisition Project',
          'create-data-set-tooltip': 'Click to create a new data set',
          'edit-data-set-tooltip': 'Click to edit the data set',
          'delete-data-set-tooltip': 'Click to delete the data set',
          'upload-related-publications-tooltip': 'Click to upload publications',
          'upload-instruments-tooltip': 'Click to upload instruments for the selected Data Acquisition Project',
          'previous-search-result-tooltip': 'Click (or CTRL+"\u21E6") to show search result {{ index }} ({{ id }})',
          'next-search-result-tooltip': 'Click (or CTRL+"\u21E8") to show search result {{ index }} ({{ id }})',
          'delete-all-data-packages-tooltip': 'Click, to delete the data package of the Data Acquisition Project',
          'delete-all-analysis-packages-tooltip': 'Click, to delete the analysis package of the Data Acquisition Project',
          'delete-all-questions-tooltip': 'Click, to delete all questions of the Data Acquisition Project',
          'delete-all-variables-tooltip': 'Click, to delete all variables of the Data Acquisition Project',
          'delete-all-surveys-tooltip': 'Click, to delete all surveys of the Data Acquisition Project',
          'delete-all-data-sets-tooltip': 'Click, to delete all data sets of the Data Acquisition Project',
          'edit-surveys-tooltip': 'Click to edit the existing surveys',
          'edit-instruments-tooltip': 'Click to edit the existing instruments',
          'edit-data-sets-tooltip': 'Click to edit the existing data sets',
          'edit-concepts-tooltip': 'Click to edit the existing concepts',
          'edit-publications-tooltip': 'Click to add publications to the data package or to remove them',
          'delete-publications-tooltip': 'Click to remove all publications from the data package of the current project',
          'open-filter-panel': 'Click to show the search filters',
          'approved-usage-use-and-logic': 'If switched on, only data packages, where all selected approved usages are assigned to, are displayed.'
        },
        'input-label': {
          'all': 'Search for Data Packages, Analysis Packages, Variables, Questions, Surveys, Data Sets, Instruments and Publications...',
          'variables': 'Search for Variables...',
          'questions': 'Search for Questions...',
          'surveys': 'Search for Surveys...',
          'data-sets': 'Search for Data Sets...',
          'data-packages': 'Search for Data Packages...',
          'analysis-packages': 'Search for Analysis Packages...',
          'related-publications': 'Search for Publications...',
          'instruments': 'Search for Instruments...',
          'concepts': 'Search for Concepts...'
        },
        'no-results-text': {
          'all': 'No results found for your search request.',
          'variables': 'No Variables found for your search request.',
          'questions': 'No Questions found for your search request.',
          'surveys': 'No Surveys found for your search request.',
          'data-sets': 'No Data Sets found for your search request.',
          'data-packages': 'No Data packages found for your search request.',
          'analysis-packages': 'No Analysis packages found for your search request.',
          'related-publications': 'No Publications found for your search request.',
          'instruments': 'No Instruments found for your search request.',
          'concepts': 'No Concepts found for your search request.',
          'sponsors': 'No Sponsors found for your search request.'
        },
        'tabs': {
          'variables': 'Variables',
          'variables-found': '{number} {number, plural, =0{variables} =1{variable} other{variables}} found.',
          'variables-tooltip': 'Click to search for variables',
          'questions': 'Questions',
          'questions-found': '{number} {number, plural, =0{questions} =1{question} other{questions}} found.',
          'questions-tooltip': 'Click to search for questions',
          'surveys': 'Surveys',
          'surveys-found': '{number} {number, plural, =0{surveys} =1{survey} other{surveys}} found.',
          'surveys-tooltip': 'Click to search for surveys',
          'data_sets': 'Data Sets',
          'data_sets-found': '{number} {number, plural, =0{data sets} =1{data set} other{data sets}} found.',
          'data_sets-tooltip': 'Click to search for data sets',
          'concepts': 'Concepts',
          'concepts-found': '{number} {number, plural, =0{concepts} =1{concept} other{concepts}} found.',
          'concepts-tooltip': 'Click to search for concepts',
          'data_packages': 'Data Packages',
          'data_packages-found': '{number} {number, plural, =0{data packages} =1{data package} other{data packages}} found.',
          'data_packages-tooltip': 'Click to search for data packages',
          'analysis_packages': 'Analysis Packages',
          'analysis_packages-found': '{number} {number, plural, =0{analysis packages} =1{analysis package} other{analysis packages}} found.',
          'analysis_packages-tooltip': 'Click to search for analysis packages',
          'all': 'All',
          'all-tooltip': 'Click to search for all objects',
          'related_publications': 'Publications',
          'related_publications-found': '{number} {number, plural, =0{publications} =1{publication} other{publications}} found.',
          'related_publications-tooltip': 'Click to search for publications',
          'instruments': 'Instruments',
          'instruments-found': '{number} {number, plural, =0{instruments} =1{instrument} other{instruments}} found.',
          'instruments-tooltip': 'Click to search for instruments'
        },
        'cards': {
          'question-tooltip': 'Click to show question "{{id}}"',
          'variable-tooltip': 'Click to show variable "{{id}}"',
          'data-set-tooltip': 'Click to show data set "{{id}}"',
          'instrument-tooltip': 'Click to show instrument "{{id}}"',
          'survey-tooltip': 'Click to show survey "{{id}}"',
          'data-package-tooltip': 'Click to show data package "{{id}}"',
          'publication-tooltip': 'Click to show publication "{{id}}"',
          'concept-tooltip': 'Click to show concept "{{id}}"'
        },
        'filter': {
          'approved-usage': 'Special restrictions for the data use',
          'approved-usage-list': 'Allowed use cases',
          'no-record': 'No data recorded.',
          'data-package': 'Data Package',
          'analysis-package': 'Analysis Package',
          'concept': 'Concept',
          'data-set': 'Data Set',
          'question': 'Question',
          'related-publication': 'Publication',
          'repeated-measurement-identifier': 'Repeated Measurements',
          'derived-variables-identifier': 'Derived Variables',
          'access-way': 'Access Way',
          'instrument': 'Instrument',
          'variable': 'Variable',
          'survey': 'Survey',
          'study-series': 'Study Series',
          'study-series-de': 'Study Series',
          'study-series-en': 'Study Series',
          'institution-de': 'Institution',
          'institution-en': 'Institution',
          'sponsor-de': 'Sponsor',
          'sponsor-en': 'Sponsor',
          'survey-method-de': 'Survey Method',
          'survey-method-en': 'Survey Method',
          'transmissionViaVerbundFdb': 'Data transmission via the VerbundFDB',
          'externalDataPackage': 'DZHW external data package',
          'floating-label': {
            'survey': 'By which survey do you want to filter?',
            'concept': 'By which concept do you want to filter?',
            'instrument': 'By which instrument do you want to filter?',
            'data-package': 'By which data package do you want to filter?',
            'data-set': 'By which data set do you want to filter?',
            'related-publication': 'By which publication do you want to filter?',
            'repeated-measurement-identifier': 'By which repeated measurements do you want to filter?',
            'derived-variables-identifier': 'By which derived variables do you want to filter?',
            'access-way': 'By which access way do you want to filter?',
            'variable': 'By which variable do you want to filter?',
            'question': 'By which question do you want to filter?',
            'study-series': 'By which study series do you want to filter?',
            'institution': 'By which institute do you want to filter?',
            'sponsor': 'By which sponsor do you want to filter?',
            'survey-method': 'By which survey method do you want to filter?',
            'approved-usage': 'By which special restrictions for the data use do you want to filter?',
            'approved-usage-list': 'By which approved usage do you want to filter?',
          },
          'input-label': {
            'data_packages': 'Select filters for Study Search...',
            'analysis_packages': 'Select filters for Analysis Search...',
            'concepts': 'Select filters for Concept Search...',
            'surveys': 'Select filters for Survey Search...',
            'instruments': 'Select filters for Instrument Search...',
            'questions': 'Select filters for Question Search...',
            'data_sets': 'Select filters for Data Set Search...',
            'variables': 'Select filters for Variable Search...',
            'related_publications': 'Select filters for Publication Search...'
          },
          'clear-filters-tooltip': 'Click to unselect all filters',
          'uncollapse-filters-tooltip': {
            'true': 'Click to show selected filters',
            'false': 'Click to hide selected filters'
          },
          'filter-search-input-label': 'Filter by...',
          'data-package-filter': {
            'not-found': 'No data package found!',
            'no-valid-selected': 'No valid data package selected!'
          },
          'concept-filter': {
            'not-found': 'No concept found!',
            'no-valid-selected': 'No valid concept selected!'
          },
          'survey-filter': {
            'not-found': 'No survey found!',
            'no-valid-selected': 'No valid survey selected!'
          },
          'instrument-filter': {
            'not-found': 'No instrument found!',
            'no-valid-selected': 'No valid instrument selected!'
          },
          'question-filter': {
            'not-found': 'No question found!',
            'no-valid-selected': 'No valid question selected!'
          },
          'data-set-filter': {
            'not-found': 'No data set found!',
            'no-valid-selected': 'No valid data set selected!'
          },
          'variable-filter': {
            'not-found': 'No variable found!',
            'no-valid-selected': 'No valid variable selected!'
          },
          'related-publication-filter': {
            'not-found': 'No publication found!',
            'no-valid-selected': 'No valid publication selected!'
          },
          'repeated-measurement-identifier-filter': {
            'not-found': 'No repeated measurement found!',
            'no-valid-selected': 'No valid repeated measurement selected!'
          },
          'derived-variables-identifier-filter': {
            'not-found': 'No derived variables identifier found!',
            'no-valid-selected': 'No valid derived variables identifier selected!'
          },
          'access-way-filter': {
            'not-found': 'No access way found!',
            'no-valid-selected': 'No valid access way selected!'
          },
          'study-series-filter': {
            'not-found': 'No existing study series found!',
            'no-valid-selected': 'No valid study series selected!'
          },
          'approved-usage-filter': {
            'not-found': 'No entries for approved usage available yet!',
            'no-valid-selected': 'No valid approved usage selected!'
          },
          'approved-usage-list-filter': {
            'logic-switch': 'All options combined',
            'no-valid-provided': 'Invalid approved usage specified via URL parameter: '
          },
          'sponsor-filter': {
            'not-found': 'No existing sponsor found!',
            'no-valid-selected': 'No valid sponsor selected!'
          },
          'institution-filter': {
            'not-found': 'No existing institution found!',
            'no-valid-selected': 'No valid institution selected!'
          },
          'survey-method-filter': {
            'not-found': 'No existing survey method found!',
            'no-valid-selected': 'No valid survey method selected!'
          }
        }
      }
      //jscs:enable
    };
    $translateProvider.translations('en', searchTranslations);
  }]);
